package cn.kxm.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import cn.kxm.pojo.Part;
import cn.kxm.pojo.PartType;

public interface PartMapper {
    public List<Map<String, Object>> getPartListByCodes(@Param("codes")String [] codes);
    public List<Map<String, Object>> getPartList(@Param("customName")String customName,
    		@Param("currPage")Integer currPage,
    		@Param("size")Integer size,
    		@Param(value="size2")String size2,
    		@Param(value="partNo")String partNo,
    		@Param(value="name")String name,
    		@Param(value="type")Integer type);
    public int getPartListCount(
    		@Param(value="size2")String size2,
    		@Param(value="partNo")String partNo,
    		@Param(value="name")String name,
    		@Param(value="type")Integer type);
    /**
	 * 根据条件查询配件信息
	 * @param part
	 * @param currentPageNo
	 * @param pageSize
	 * @return
	 */
	List<Map<String, Object>> getPartListt(@Param("part")Part part,@Param("currentPageNo")Integer currentPageNo,
			@Param("pageSize")Integer pageSize);
	/**
	 * 根据查询条件查出总数量
	 * @param currentPageNo
	 * @param pageSize
	 * @return
	 */
	int getPartCount(@Param("part")Part part);
	/**
	 * 根据编号查询具体的配件信息
	 * @param code
	 * @return
	 */
	List<Map<String, Object>>getByCode(@Param("code")String code);
	/**
	 * 根据编号查询part与询价信息
	 * @param code
	 * @return
	 */
	List<Map<String, Object>>getPart_ib(@Param("code")String code);
	
	//user by offerpricebill
	public List<Part> getPartList(@Param("partBrand") String partBrand,@Param("partNo") String partNo,@Param("partName") String partName,@Param("partTypeId") Integer partTypeId,@Param("dangqianye") Integer pageNo,@Param("size") Integer pageSize);
   public int getPartCount(@Param("partBrand") String partBrand,@Param("partNo") String partNo,@Param("partName") String partName,@Param("partTypeId") Integer partTypeId);
   public List<PartType> getPartTypeList();
}
